<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <ui:composition>
                <fieldset id="idLgnFldSt">
                    <legend id="idLgndLgnFldSt">#{msg.loginBoxTitle}</legend>
                    <h:form id="idLgnFrm" >
                        <h:panelGrid columns="2">
                            <label for="idUsrNmtxtFld">#{msg.Username}</label>
                            <h:inputText id="idUsrNmTxtFld" maxlength="128" value="#{user.name}"/>
                            <label for="idUsrPwdFld">#{msg.Password}</label>
                            <h:inputSecret id="idUsrPwdFld" maxlength="128" value="#{user.password}"/>
                            <h:commandButton class="classBtn" id="idBtnSbmt" value="#{msg.LogIn}" action="#{user.autentificate()}" /> 
                            <h:outputText class="lgnFrmMsg" value="#{user.message}" />
                            <!--h:commandLink value="eng" action="#{user.setLocaleEng()}"/-->
                            <!--h:commandLink value="nor" action="#{user.setLocaleNor()}"/-->
                        </h:panelGrid>

                    </h:form>
                </fieldset>
        </ui:composition>
    </h:body>
</html>

